package com.lovi.io_.propertis_;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
/*
读取配置文件的键值对
展示传统方法读取（用处理流）
 */
public class Properties01_ {
    public static void main(String[] args) throws IOException {
        String filePath = "Java-03/src/main/resources/mysql.properties";
        BufferedReader br = new BufferedReader(new FileReader(filePath));
        String readLine;
        while((readLine = br.readLine())!=null){
            //关于k-v
            String[] split = readLine.split("=");
            System.out.println(split[0]+"-"+split[1]);
        }



    }
}
